package org.nbict.iot.trident.mogo.state;

import org.apache.storm.trident.operation.TridentCollector;
import org.apache.storm.trident.state.BaseStateUpdater;
import org.apache.storm.trident.tuple.TridentTuple;

import java.util.List;

/**
 * mongo state 状态更新类，用于持久化流
 * Created by songseven on 18/6/25.
 */
public class MongoStateUpdater extends BaseStateUpdater<MongoState> {

    @Override
    public void updateState(MongoState state, List<TridentTuple> tuples, TridentCollector collector) {
        state.updateState(tuples, collector);
    }
}
